get stock product woocommerce by id

51

get stock product woocommerce by id -

$product_id = 1100;
$product = wc_get_product($product_id);
echo $product->get_stock_quantity();

Comments

Submit
0 Comments